home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
pc
/
vikingw.dir
/
01650_Script_travelling
< prev
next >
Wrap
Text File
|
1995-09-12
|
5KB
|
188 lines
global gbeenclicked, gQuest
on VTravelRollovers
set gbeenclicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(6) or rollover(7) then
repeat while rollover(6) or rollover(7)
VikingCursor
if (the mousedown) then
set gbeenclicked = 1
else
--the mouse is up
if gbeenclicked = 1 then
repeat while gbeenclicked = 1
TravelAnimation
end repeat
end if
end if
end repeat
else
if rollover(40) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on VTravelRollovers2
set gbeenclicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(6) then
VikingCursor
repeat while rollover(6)
if (the mousedown) then
set gbeenclicked = 1
else
--the mouse is up
if gbeenclicked = 1 then
repeat while gbeenclicked = 1
AnimateLoopSoundFade 6, 855, 3, "SV340600.AIF", 2
end repeat
end if
end if
end repeat
else
if rollover(11) then
ArrowCursor
repeat while rollover(11)
set the locH of sprite 12 to 248
set the locV of sprite 12 to 347
updatestage
end repeat
set the locH of sprite 12 to 999
updatestage
else
if rollover(9) then
ArrowCursor
repeat while rollover(9)
set the locH of sprite 10 to 409
set the locV of sprite 10 to 107
updatestage
end repeat
set the locH of sprite 10 to 999
updatestage
else
if rollover(7) then
ArrowCursor
repeat while rollover(7)
set the locH of sprite 8 to 248
set the locV of sprite 8 to 329
updatestage
end repeat
set the locH of sprite 8 to 999
updatestage
else
if rollover(39) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on TravelAnimation
ArrowCursor
puppetsprite 8, true
puppetsprite 9, true
puppetsprite 10, true
set RunThruCount = 0
set gCast1 = the castNum of sprite 8
set gCast2 = the castNum of sprite 9
set gCast3 = the castNum of sprite 10
repeat while RunThruCount < 3 and (the MouseUp)
puppetsound "SV340303.AIF"
set the castNum of sprite 9 = gCast2 + 1
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set the castNum of sprite 10 = gCast3 + 1
updatestage
Wait .5
if the mousedown then
exit repeat
end if
puppetsound 0
set the castNum of sprite 8 = gCast1 + 1
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set the castNum of sprite 10 = gCast3
set the castNum of sprite 9 = gCast2
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set the castNum of sprite 10 = gCast3 + 1
updatestage
Wait .5
puppetsound "SV340303.AIF"
set the castNum of sprite 9 = gCast2 + 1
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set the castNum of sprite 8 = gCast1
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set the castNum of sprite 10 = gCast3
updatestage
Wait .5
if the mousedown then
exit repeat
end if
puppetsound 0
set the castNum of sprite 9 = gCast2
updatestage
Wait .5
if the mousedown then
exit repeat
end if
set RunThruCount = RunThruCount + 1
end repeat
set the castNum of sprite 8 = gCast1
set the castNum of sprite 9 = gCast2
set the castNum of sprite 10 = gCast3
updatestage
sound fadeOut 1, 2*60
puppetsprite 8, false
puppetsprite 9, false
puppetsprite 10, false
set gbeenclicked = 0
end